package com.maomao.node;

public class Client {
    public static void main(String[] args) {
        Node driveD = new Folder("D:");
        Node doc = new Folder("document");
        doc.add(new File("简历.doc"));
        doc.add(new File("项目介绍.PPT"));
        driveD.add(doc);


        Node music = new Folder("music");

        Node jay = new Folder("jay zhou");
        jay.add(new File("jay music-1.doc"));
        jay.add(new File("jay music-2.doc"));


        Node jack = new Folder("jack");
        jack.add(new File("jack music-1.doc"));
        jack.add(new File("jack music-2.doc"));

        music.add(jay);
        music.add(jack);

        driveD.add(music);
        driveD.ls();
    }
}
